package cn.com.oceansoft.business.mobile.danger.entity;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

/**
 * 流转信息
 */
public class FlowInfo {
    private String id;//id
    private String dangerid;//隐患id
    private String opertype;//操作类型 签收1，流转2，处理中3，已处理4，已反馈5，退回9
    private String fjid;//流转区
    private String pcsid;//流转街道
    private String sqid;//流转社区
    private String dealresult;//处理结果 正常处理1 重复上报2 信息不属实3
    private String dealcontent;//处理结果文字描述
    private String dealphoto0;//处理完成照片1
    private String dealphoto1;//处理完成照片1
    private String dealphoto2;//处理完成照片2
    private String dealphoto3;//处理完成照片3
    private String dealphoto4;//处理完成照片4
    private String dealphoto5;//处理完成照片5
    private String dealphoto6;//处理完成照片6
    private String dealphoto7;//处理完成照片7
    private String dealphoto8;//处理完成照片8
    private String dealphoto9;//处理完成照片9
    private String backreason;//退回原因
    private String collecterid;//处理人ID
    private Date createtime;//
    private String ispenalty;//是否处罚 0 否，1 是
    private String ischange;//是否整改  0 否，1 是

    public static RowMapper<FlowInfo> getFullNewsMapper() {
        return new RowMapper<FlowInfo>() {
            @Override
            public FlowInfo mapRow(ResultSet rs, int index) throws SQLException {
                FlowInfo obj = new FlowInfo();
                obj.setId(rs.getString("ID"));
                obj.setDangerid(rs.getString("Dangerid"));
                obj.setOpertype(rs.getString("OPERTYPE"));
                obj.setDealresult(rs.getString("DEALRESULT"));
                obj.setDealcontent(rs.getString("DEALCONTENT"));
                obj.setCreatetime(rs.getTimestamp("createtime"));
                obj.setFjid(rs.getString("fjid"));
                obj.setPcsid(rs.getString("pcsid"));
                obj.setSqid(rs.getString("sqid"));
                obj.setBackreason(rs.getString("backreason"));
                obj.setDealphoto1(rs.getString("DEALPHOTO1"));
                obj.setDealphoto2(rs.getString("DEALPHOTO2"));
                obj.setDealphoto3(rs.getString("DEALPHOTO3"));
                obj.setCollecterid(rs.getString("COLLECTERID"));
                obj.setIschange(rs.getString("ischange"));
                obj.setIspenalty(rs.getString("ispenalty"));
                return obj;
            }
        };
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDangerid() {
        return dangerid;
    }

    public void setDangerid(String dangerid) {
        this.dangerid = dangerid;
    }

    public String getOpertype() {
        return opertype;
    }

    public void setOpertype(String opertype) {
        this.opertype = opertype;
    }

    public String getFjid() {
        return fjid;
    }

    public void setFjid(String fjid) {
        this.fjid = fjid;
    }

    public String getPcsid() {
        return pcsid;
    }

    public void setPcsid(String pcsid) {
        this.pcsid = pcsid;
    }

    public String getSqid() {
        return sqid;
    }

    public void setSqid(String sqid) {
        this.sqid = sqid;
    }

    public String getDealresult() {
        return dealresult;
    }

    public void setDealresult(String dealresult) {
        this.dealresult = dealresult;
    }

    public String getDealcontent() {
        return dealcontent;
    }

    public void setDealcontent(String dealcontent) {
        this.dealcontent = dealcontent;
    }

    public String getDealphoto1() {
        return dealphoto1;
    }

    public void setDealphoto1(String dealphoto1) {
        this.dealphoto1 = dealphoto1;
    }

    public String getDealphoto2() {
        return dealphoto2;
    }

    public void setDealphoto2(String dealphoto2) {
        this.dealphoto2 = dealphoto2;
    }

    public String getDealphoto3() {
        return dealphoto3;
    }

    public void setDealphoto3(String dealphoto3) {
        this.dealphoto3 = dealphoto3;
    }

    public String getBackreason() {
        return backreason;
    }

    public void setBackreason(String backreason) {
        this.backreason = backreason;
    }

    public String getCollecterid() {
        return collecterid;
    }

    public void setCollecterid(String collecterid) {
        this.collecterid = collecterid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getIspenalty() {
        return ispenalty;
    }

    public void setIspenalty(String ispenalty) {
        this.ispenalty = ispenalty;
    }

    public String getIschange() {
        return ischange;
    }

    public void setIschange(String ischange) {
        this.ischange = ischange;
    }

    public String getDealphoto0() {
        return dealphoto0;
    }

    public void setDealphoto0(String dealphoto0) {
        this.dealphoto0 = dealphoto0;
    }

    public String getDealphoto9() {
        return dealphoto9;
    }

    public void setDealphoto9(String dealphoto9) {
        this.dealphoto9 = dealphoto9;
    }

    public String getDealphoto8() {
        return dealphoto8;
    }

    public void setDealphoto8(String dealphoto8) {
        this.dealphoto8 = dealphoto8;
    }

    public String getDealphoto4() {
        return dealphoto4;
    }

    public void setDealphoto4(String dealphoto4) {
        this.dealphoto4 = dealphoto4;
    }

    public String getDealphoto5() {
        return dealphoto5;
    }

    public void setDealphoto5(String dealphoto5) {
        this.dealphoto5 = dealphoto5;
    }

    public String getDealphoto6() {
        return dealphoto6;
    }

    public void setDealphoto6(String dealphoto6) {
        this.dealphoto6 = dealphoto6;
    }

    public String getDealphoto7() {
        return dealphoto7;
    }

    public void setDealphoto7(String dealphoto7) {
        this.dealphoto7 = dealphoto7;
    }
}
